-- GENERATED SPELL FOR [Snowblind Ambusher] --


function spell0_11678(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11678', 604, 1)
end

function spell1_11678(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(19472,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11678', 547, 1)
end

function Sorts_11678(pUnit, Event)
local choix_sorts_11678 = math.random(0, 1)
if choix_sorts_11678 == 0 then
pUnit:RegisterEvent('spell0_11678', 1, 1)
end
if choix_sorts_11678 == 1 then
pUnit:RegisterEvent('spell1_11678', 1, 1)
end
end

function mob11678_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11678', math.random(1500, 3000), 1)
end

function mob11678_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11678_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11678_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11678, 1, 'mob11678_Action')
RegisterUnitEvent(11678, 2, 'mob11678_Leave')
RegisterUnitEvent(11678, 3, 'mob11678_Kill')
RegisterUnitEvent(11678, 4, 'mob11678_Die')
